package com.jzj.jzjctripapi.domain.enums;

import lombok.Data;

/**
 * @author Mazhenming
 * @date 2023/11/7 11:30
 * @desciption: 返回错误代码
 */
public enum ErrorCode {
    INTERFACE_PERMISSION_RESTRICTED(1000, "接口权限受限"),
    SUBACCOUNT_NAME_NOT_EXIST(1001, "SubAccountName不存在"),
    UNKNOWN_ERROR(1002, "未知错误，请检查网络连接"),
    ENTITY_CLASS_EMPTY(1003, "实体类为空，未传入调用信息"),
    CHECK_USERNAME_PASSWORD_REQUIRED(1004, "请传入校验的用户名和密码"),
    COMPANY_ID_EMPTY(1005, "公司ID为空"),
    UID_EMPLOYEE_ID_EMAIL_EMPTY(1006, "uid和员工编号和邮箱均为空"),
    SUBACCOUNT_NAME_EMPTY(1007, "SubAccountName为空"),
    AUTHENTICATION_FAILED_OR_IP_RESTRICTED(1008, "未通过身份验证或者IP受限"),
    LOGIN_CHECK_USERNAME_AND_COMPANY_ID_MISMATCH(1009, "登陆校验的用户名和所传数据的公司ID不匹配"),
    UID_AND_COMPANY_ID_MISMATCH(1010, "Uid和公司ID不匹配"),
    NAME_LENGTH_EXCEEDS(1011, "Name长度大于80"),
    COST_CENTER_LENGTH_EXCEEDS(1012, "CostCenter长度大于100"),
    COST_CENTER2_LENGTH_EXCEEDS(1013, "CostCenter2长度大于100"),
    COST_CENTER3_LENGTH_EXCEEDS(1014, "CostCenter3长度大于100"),
    IDCARDNO_LENGTH_EXCEEDS(1015, "IdCardNo身份证号参数长度大于20"),
    PASSPORTNO_LENGTH_EXCEEDS(1016, "PassPortNo护照号参数长度大于20"),
    EMAIL_FORMAT_ERROR(1017, "Email联系邮箱传入数据错误(验证规则：邮箱基本格式验证)"),
    GENDER_ERROR(1018, "Gender性别传入数据错误(验证规则：枚举值验证)"),
    MOBILEPHONE_LENGTH_EXCEEDS(1019, "MobilePhone手机号参数长度大于20"),
    CONFIRMPERSON_LENGTH_EXCEEDS(1020, "ConfirmPerson授权人传入参数长度大于60"),
    CONFIRMPERSON2_LENGTH_EXCEEDS(1021, "ConfirmPerson2二次授权人传入参数长度大于60"),
    CONFIRMPERSONCC_LENGTH_EXCEEDS(1022, "ConfirmPersonCC抄送授权人传入参数长度大于60"),
    CONFIRMPERSONCC2_LENGTH_EXCEEDS(1023, "ConfirmPersonCC2抄送二次授权人传入参数长度大于60"),
    FLIGHTSEND_MODIFICATIONDATAERROR(1024, "FltSend_Mod机票配送方式传入数据错误(验证规则：枚举值验证)"),
    VALIDSTATUSERROR(1025, "Valid在职情况传入数据错误(验证规则：枚举值验证)"),
    UPDATEDATASIZEEXCEEDS500(1026, "人事更新数据条数大于500"),
    EMPLOYEEIDOREMAILMISMATCHCURRENTUID(1027, "EmployeeId员工编号或者邮箱和当前Uid不匹配"),
    NATIONALITYLENGTHEXCEEDS2(1028, "Nationality国籍长度大于2"),
    EMPLOYEEIDLENGTHEXCEEDS100(1029, "EmployeeID员工编号长度大于100"),
    CHECKUSERNAMEANDTICKETREQUIRED(1030, "请传入校验的用户名和Ticket"),
    TOKENEXPIREDREGENERATETICKET(1031, "身份过期，请重新生成ticket"),
    TOKENEXPIRATIONCOUNTEREXPIREDREGENERATETICKET(1032, "身份验证次数过期，请重新生成ticket"),
    BIRTHDAYPARAMETERERROR(1034, "Birthday传入参数错误"),
    STUDENTNOERROR(1036, "StudentNo学生证参数长度大于20"),
    MILITARYNOERROR(1037, "MilitaryNo军人证参数长度大于20"),
    HOMERETURNNOERROR(1038, "HomeReturnNo回乡证参数长度大于20"),
    MTPNOERROR(1039, "MTPNo台胞证参数长度大于20"),
    TWOPASSPORTENUMERATIONERROR(1040, "TwoWayPermitNo港澳通行证参数长度大于20"),
    SEAMENNOERROR(1041, "SeamanNo国际海员证参数长度大于20"),
    FORELIGNERSRECIDENOERROR(1042, "ForeignersResidenceNo外国人永久居留证参数长度大于20"),
    TRAVELNOERROR(1043, "TravelNo旅行证参数长度大于20"),
    TAIWANPASSNOERROR(1044, "TaiwanPassNo台湾通行证参数长度大于20"),
    DEPT1LENGTHEXCEEDS100(1045, "Dept1部门1参数长度大于100"),
    DEPT2LENGTHEXCEEDS100(1046, "Dept2部门2参数长度大于100"),
    DEPT3LENGTHEXCEEDS100(1047, "Dept3部门3参数长度大于100"),
    DEPT4LENGTHEXCEEDS100(1048, "Dept4部门4参数长度大于100"),
    DEPT5LENGTHEXCEEDS100(1049, "Dept5部门5参数长度大于100"),
    NAMEENFIRSTNAMECORRECTLYSPECIFIED(1050, "请正确传入NameENFirstName"),
    COST_CENTER1_EN_LENGTH_EXCEEDS(1052, "CostCenter1EN长度大于100"),
    COST_CENTER2_EN_LENGTH_EXCEEDS(1053, "CostCenter2EN长度大于100"),
    COST_CENTER3_EN_LENGTH_EXCEEDS(1054, "CostCenter3EN长度大于100"),
    COST_CENTER_TYPE_MISMATCH(1055, "成本中心可选数据，成本中心类型不匹配"),
    COST_CENTER_CHINESE_LENGTH_EXCEEDS(1056, "成本中心可选数据，成本中心中文内容长度大于200"),
    COST_CENTER_ENGLISH_LENGTH_EXCEEDS(1057, "成本中心可选数据，成本中心英文内容长度大于100"),
    COST_CENTER_DEFAULT_VALUE_ONLY_ONE(1058, "成本中心可选数据，同一成本中心类型，只能设置一个默认值"),
    COST_CENTER_REPEATED_RECORD(1059, "成本中心可选数据不允许重复记录"),
    AUTHORIZER_PRODUCT_TYPE_MISMATCH(1060, "授权人可选数据，产品类型不匹配"),
    AUTHORIZER_AUTHORIZATION_ORDER_MISMATCH(1061, "授权人可选数据，授权次别不匹配"),
    AUTHORIZER_EMPLOYEE_ID_OR_EMAIL_NOT_EXIST(1062, "授权人可选数据，授权人员工编号或邮箱对应UID不存在"),
    AUTHORIZER_CC_EMPLOYEE_ID_OR_EMAIL_NOT_EXIST(1063, "授权人可选数据，抄送授权人员工编号或邮箱对应UID不存在"),
    AUTHORIZER_DEFAULT_AUTHORIZER_ONLY_ONE(1064, "授权人可选数据，同类型产品同次别授权，只能设置一个默认授权人"),
    AUTHORIZER_REPEATED_RECORD(1065, "授权人可选数据不允许重复记录"),
    AUTHORIZER_EMPLOYEE_ID_OR_EMAIL_LENGTH_EXCEEDS(1066, "授权人可选数据，授权人员工编号或邮箱长度大于100"),
    AUTHORIZER_CC_EMPLOYEE_ID_OR_EMAIL_LENGTH_EXCEEDS(1067, "授权人可选数据，抄送授权人员工编号或邮箱长度大于100"),
    COST_CENTER_CHINESE_CONTENT_EMPTY(1068, "成本中心可选数据，成本中心中文内容为空"),
    USER_EMAIL_EMPTY(1069, "该用户email地址为空，无法发送开通邮件"),
    CARD_STATUS_SETTING(1070, "对需要开卡的用户不能同时设置在职情况为离职"),
    ISBOOKCLASS_INPUT_ERROR(1071, "IsBookClass传入数据错误"),
    INTLBOOKCLASSBLOCK_INPUT_ERROR(1072, "IntlBookClassBlock传入数据错误"),
    CORPCARDTYPE_INPUT_ERROR(1073, "CorpCardType传入数据错误"),
    RESRANGE_INPUT_ERROR(1074, "ResRange传入数据错误"),
    CONCUR_ACCOUNT_LENGTH_EXCEEDS(1075, "ConcurAccount传入数据长度大于50"),
    INTLBOOKCLASSBLOCK_LENGTH_EXCEEDS(1076, "IntlBookClassBlock传入数据长度大于200"),
    EMPLOYEEID_NOT_NUMBER(1080, "公司定制卡号段，EmployeeID必须为数字！"),
    EMPLOYEEID_OUT_OF_RANGE(1081, "所传递的EmployeeID超出公司自动开卡配置范围！"),
    HOTELCARDNUMBER_INCORRECT(1082, "携程卡号不正确。"),
    RANKNAME_RANKNAMEEN_ONLY_ONE(1083, "职级RankName，RankNameEn只能传递一个。"),
    RANKNAME_LENGTH_EXCEEDS(1084, "RankName传入数据长度大于200"),
    RANKNAMEEN_LENGTH_EXCEEDS(1085, "RankNameEn传入数据长度大于200"),
    RANKNAME_NOT_FOUND(1086, "未找到对应的职级配置"),
    AUTHEMAILSMSLANGUAGE_MISMATCH(1087, "授权邮件短信语言版本不匹配"),
    CARDHOLDERINFORMATION_MANDATORY(1088, "卡号证件信息可选数据，证件号码必填"),
    CARDHOLDERINFORMATION_LENGTH_EXCEEDS(1089, "卡号证件信息可选数据，证件号码内容长度大于50"),
    CARDHOLDERINFORMATION_TYPE_MANDATORY(1090, "卡号证件信息可选数据，证件类型必填"),
    CARDHOLDERINFORMATION_TYPE_MISMATCH(1091, "卡号证件信息可选数据，证件类型不匹配"),
    PASSPORTTYPE_MISMATCH(1092, "护照类型不匹配"),
    PASSENGERCARDINFORMATION_MANDATORY(1093, "常旅客卡信息可选数据，航线必填"),
    PASSENGERCARDINFORMATION_LENGTH_EXCEEDS(1094, "常旅客卡信息可选数据，航线内容长度大于2"),
    PASSENGERCARDINFORMATION_CARDNUMBER_MANDATORY(1095, "常旅客卡信息可选数据，常旅客卡卡号必填"),
    PASSENGERCARDINFORMATION_CARDNUMBER_LENGTH_EXCEEDS(1096, "常旅客卡信息可选数据，常旅客卡卡号长度大于40"),
    PASSENGERCARDINFORMATION_NONREPETITIVE(1097, "常旅客卡信息可选数据，航线不允许重复记录"),
    PASSENGERCARDINFORMATION_CARDNUMBER_NONREPETITIVE(1098, "常旅客卡信息可选数据，常旅客卡卡号不允许重复记录"),
    PASSENGERCARDINFORMATION_TYPE_NONREPETITIVE(1099, "卡号证件信息可选数据，证件类型不允许重复记录"),
    PASSENGERCARDINFORMATION_VALIDITYDATE_ERROR(1100, "卡号证件信息可选数据，证件有效期传入参数错误"),
    EMAILCONFIGURATION_ERROR(1101, "邮件发送配置=>《邮件发送节点》值错误，请参考文档传值"),
    EMAILCONFIGURATION_LANGUAGE_ERROR(1102, "邮件发送配置=>《语言》值错误，请参考文档传值"),
    EMAILCONFIGURATION_SENDCARDHOLDER_ERROR(1103, "邮件发送配置=>《是否发送持卡人》值错误，请参考文档传值"),
    EMAILCONFIGURATION_SENDORDERCONTACT_ERROR(1104, "邮件发送配置=>《是否发送订单联系人》值错误，请参考文档传值"),
    EMAILCONFIGURATION_BUSINESSTYPE_ERROR(1105, "邮件发送配置=>《业务类型》值错误，请参考文档传值"),
    EMAILCONFIGURATION_RULEVALIDITY_ERROR(1106, "邮件发送配置=>《邮件规则是否有效》值错误，请参考文档传值"),
    EMAILCONFIGURATION_RECEIVEREMAILADDRESS_LENGTH_ERROR(1107, "邮件发送配置=>《接收人邮件地址》邮箱地址长度大于255，请参考文档传值"),
    EMAILCONFIGURATION_RECEIVEREMAILADDRESS_EMPTY(1108, "邮件发送配置=>《接收人邮件地址》请填入邮箱地址"),
    EMAILCONFIGURATION_RECEIVEREMAILADDRESSFORMATTING_ERROR(1109, "邮件发送配置=>《接收人邮件地址》邮箱地址格式错误，请参考文档传值"),
    SMSCONFIGURATION_ISSENDREFUNDPASSENGER_ERROR(1301, "短信发送配置=>《是否退票乘客》值错误，请参考文档传值"),
    SMSCONFIGURATION_ISSENDRETRAVELPASSENGER_ERROR(1302, "短信发送配置=>《是否改签乘客》值错误，请参考文档传值"),
    SMSCONFIGURATION_MESSAGETYPE_ERROR(1303, "消息发送配置=>《消息发送种类》值错误，请参考文档传值"),
    SMSCONFIGURATION_RECEIVERSMSISDNLENGTH_ERROR(1304, "短信发送配置=>《接收人手机号》长度大于255，请参考文档传值"),
    SMSCONFIGURATION_RECEIVERSMSISDFMTTINGERROR(1305, "短信发送配置=>《接收人手机号》手机号格式错误，请参考文档传值"),
    MSG_SENDING_CONFIG_INVALID_RECEIVER_EMPLOYEE_NUMBER(1306, "消息发送配置=>《接收人员工号》编号中包含未开卡或不存在的员工"),
    SMS_SENDING_CONFIG_INVALID_NODE_VALUE(1307, "短信发送配置=>《短信发送节点》发送节点值错误，请参考文档传值"),
    SMS_SENDING_CONFIG_CONSISTENCY_ERROR(1308, "短信发送配置=>同一短信发送节点(D,S节点)，国内机票跟国际机票IsSendCardHolder，EmailSendRuleValid两个配置项的值，必须一致。请参考文档传值"),
    SMS_SENDING_CONFIG_CONSISTENCY_ERROR_R(1309, "短信发送配置=>同一短信发送节点(R节点)，国内机票跟国际机票IsSendCardHolder，IsRefundPassenger，EmailSendRuleValid三个配置项的值，必须一致。请参考文档传值"),
    SMS_SENDING_CONFIG_CONSISTENCY_ERROR_G(1310, "短信发送配置=>同一短信发送节点(G节点)，国内机票跟国际机票IsSendCardHolder，IsChangePassenger，EmailSendRuleValid三个配置项的值，必须一致。请参考文档传值"),
    EMAIL_SENDING_CONFIG_INVALID_TRAIN_NODE_VALUE(1311, "邮件发送配置=>《邮件发送节点》火车票发送节点值错误，请参考文档传值"),
    EMAIL_SENDING_CONFIG_INVALID_PACKAGE_NODE_VALUE(1312, "邮件发送配置=>《邮件发送节点》行程打包发送节点值错误，请参考文档传值"),
    ONE_TIME_AUTHORISATION_EMAIL_NOT_EXIST(1110, "一次授权人邮箱不存在"),
    ONE_TIME_AUTHORISATION_ACCOUNT_SUSPENDED(1111, "一次授权人授权人账户已停用"),
    SECONDARY_AUTHORISATION_EMAIL_NOT_EXIST(1112, "二次授权人邮箱不存在或未维护邮箱"),
    SECONDARY_AUTHORISATION_ACCOUNT_SUSPENDED(1113, "二次授权人授权人账户已停用"),
    ONE_TIME_CC_AUTHORISATION_EMAIL_NOT_EXIST(1114, "一次抄送授权人邮箱不存在或未维护邮箱"),
    ONE_TIME_CC_AUTHORISATION_ACCOUNT_SUSPENDED(1115, "一次抄送授权人授权人账户已停用"),
    SECONDARY_CC_AUTHORISATION_EMAIL_NOT_EXIST(1116, "二次抄送授权人邮箱不存在或未维护邮箱"),
    SECONDARY_CC_AUTHORISATION_ACCOUNT_SUSPENDED(1117, "二次抄送授权人授权人账户已停用"),
    EMAIL_SENDING_CONFIG_INVALID_FLYING_NODE_VALUE(1118, "邮件发送配置=>《邮件发送节点》机票发送节点值错误，请参考文档传值"),
    // 邮件发送配置相关错误
    EMAIL_CONFIGURATION_ERROR(1119, "邮件发送配置=>《邮件发送节点》酒店发送节点值错误，请参考文档传值"),
    EMAIL_CONFIGURATION_ERROR_DOMESTIC(1120, "邮件发送配置=>国内机票邮件配置信息不能为空，请参考文档传值"),
    EMAIL_CONFIGURATION_ERROR_INTERNATIONAL(1121, "邮件发送配置=>国际机票邮件配置信息不能为空，请参考文档传值"),
    EMAIL_CONFIGURATION_CONSISTENCY_ERROR(1122, "邮件发送配置=>同一邮件发送节点，国内机票跟国际机票IsSendCardHolder，IsSendContactor，EmailSendRuleValid三个开关值，必须一致。请参考文档传值"),

    // 代订关系信息相关错误
    DEPENDENCY_RELATIONSHIP_ERROR(1123, "代订关系信息=>被代订人Uid，Eid不能同时为空"),
    DEPENDENCY_RELATIONSHIP_ERROR_USER_NOT_EXIST(1124, "代订关系信息=>无此用户"),
    DEPENDENCY_RELATIONSHIP_ERROR_RES_VALID(1125, "代订关系信息=>ResValid传值错误，请参考文档传值"),

    // 英文姓名相关错误
    ENGLISH_NAME_ERROR(1126, "英文姓名需由字母组成"),

    // 卡片状态相关错误
    CARD_STATUS_ERROR(1127, "此卡已停用，无法更新信息"),
    DEPENDENCY_RELATIONSHIP_ERROR_CARD_NUMBER(1128, "代订关系信息=>代定人卡号无效"),

    // 语言值相关错误
    LANGUAGE_VALUE_ERROR(1129, "非法语言值，目前仅支持zh-CN，en-US 。 Invalid language value, only zh-CN and en-US permited"),

    // UseTRFlag值相关错误
    USE_TR_FLAG_ERROR(1130, "非法UseTRFlag值，必须为大于或等于-1的整数"),

    // Token相关错误
    TOKEN_INVALID(1131, "Token无效"),

    // FltClassStandard传入数据错误
    FLT_CLASS_STANDARD_INPUT_ERROR(1132, "FltClassStandard传入数据错误"),

    // FltRateStandard传入数据错误
    FLT_RATE_STANDARD_INPUT_ERROR(1133, "FltRateStandard传入数据错误"),

    // SuperiorEid上级员工编号不存在
    SUPERIOR_EID_NOT_EXIST(1134, "SuperiorEid上级员工编号不存在"),

    // CustID传入数据错误
    CUSTOMER_ID_INPUT_ERROR(1135, "CustID传入数据错误"),

    // 不是大客户公司
    NOT_LARGE_CUSTOMER(1136, "不是大客户公司"),

    // Dept6部门6参数长度大于100
    DEPT6_LENGTH_ERROR(1245, "Dept6部门6参数长度大于100"),

    // Dept7部门7参数长度大于100
    DEPT7_LENGTH_ERROR(1246, "Dept7部门7参数长度大于100"),

    // Dept8部门8参数长度大于100
    DEPT8_LENGTH_ERROR(1247, "Dept8部门8参数长度大于100"),

    // Dept9部门9参数长度大于100
    DEPT9_LENGTH_ERROR(1248, "Dept9部门9参数长度大于100"),
    DEPT10_LENGTH_ERROR(1249, "Dept10部门10参数长度大于100"),
    IS_SERVED_CARD_INVALID(1137, "IsServedCard为非法值，有效值为T或F"),
    TICKET_SEAT_FORMAT_ERROR(1138, "火车票可选席别格式不正确。每个席别间需以英文分号分割"),
    TICKET_OTHER_SEAT_ERROR(1139, "火车票可选席别外是否可订其它席别传值错误，正确值见括号(T:是，F:否)"),
    MASTER_ACCOUNT_FROZEN_OR_REVOKED(1140, "主子账户已冻结或者注销，请联系携程客户经理进行操作"),
    CORPORATION_ID_EXPIRED(1141, "CorporationID已失效，请联系差旅负责人"),
    INVALID_PHONE_NUMBER(1142, "无效手机号码 (注：手机号码异常，仅手机号该字段不落地保存，其余字段如正常则该条人事数据正常落地)"),
    RESERVATION_FLIGHT_HD_INVALID(1143, "ReservationFlightHD为非法值，有效值是5到100内的5的倍数"),
    REFUND_AUTH_INVALID(1144, "RefundAuth传入数据错误"),
    SETTLEMENT_STATUS_DISABLED(1145, "结算状态已停用，请联系差旅负责人"),
    DOMESTIC_FLIGHT_HIDE_FIELD_ERROR(1146, "国内机票是否屏蔽带标签舱位字段传值错误，正确值见括号(T:是，F:否)"),
    CHANGE_TICKET_AUTH_TYPE_INVALID(1147, "ChangeTicketAuthType传入数据错误"),
    CHANGE_TICKET_NEED_AUTH_INVALID(1148, "ChangeTicketNeedAuth传入数据错误，正确值见括号(T:需要，F:不需要)"),
    CHANGE_TICKET_AUTH_TYPE_NOT_ALLOWED(1149, "ChangeTicketAuthType为空或不需要时，不允许传入ChangeTicketNeedAuth"),
    CHANGE_TICKET_AUTH_AMOUNT_REQUIRED(1150, "仅当ChangeTicketNeedAuth为需要时才能传入ChangeTicketAuthAmount"),
    CHANGE_TICKET_AUTH_AMOUNT_GREATER_THAN_ZERO(1151, "ChangeTicketAuthAmount必须大于0"),
    DOMESTIC_TICKET_OPENING_TYPE_INVALID(1152, "国内机票开票类型传入数据错误"),
    INTERNATIONAL_TICKET_OPENING_TYPE_INVALID(1153, "国际机票开票类型传入数据错误"),
    EMPLOYEE_ID_INVALID(1033, "EmployeeID中不允许有单引号"),
    PRODUCT_TYPE_NA_ONLY(1154, "ProductType=NA仅允许AuthorizedTime=1"),
    AUTHORIZED_PERSON_DATA_INVALID(1155, "授权人可选数据ProductType为H时不可同时包含DH或IH"),
    USERGROUPINFOLIST_TOO_LONG(1157, "UserGroupInfoList传入数据条数大于100"),
    USERGROUPINFOLIST_DUPLICATE(1158, "UserGroupInfoList传入数据错误，不能包含重复的GroupID"),
    USERGROUPINFOLIST_INVALID(1159, "UserGroupInfoList传入数据错误，Valid为非法值，有效值为T或F"),
    USERGROUPINFOLIST_INVALIDGROUPID(1160, "UserGroupInfoList传入数据错误，包含无效的GroupID：%s"),
    USERGROUPINFOLIST_NOTBASEDUIDSUPPORT(1161, "UserGroupInfoList传入数据错误，GroupID：%s,并非基于UID维护"),
    CONFIRMPERSONLIST_INVALID(1165, "ConfirmPersonList传入数据错误，ConfirmPerson：%s,开授权人卡时，若ConfirmPerson为邮箱格式，传入ConfirmPersonEmail必须与ConfirmPerson一致"),
    CONFIRMPERSONLIST_INVALIDNONEMAIL(1166, "ConfirmPersonList传入数据错误，ConfirmPerson：%s,开授权人卡时，若ConfirmPerson为非邮箱格式，ConfirmPersonEmployeeID必须与ConfirmPerson一致"),
    CONFIRMPERSONLIST_EMAILREQUIRED(1167, "ConfirmPersonList传入数据错误，ConfirmPerson：%s,开授权人卡时，ConfirmPersonEmail必填"),
    CONFIRMPERSONLISTNAMEREQUIRED(1168, "ConfirmPersonList传入数据错误，ConfirmPerson：%s,开授权人卡时，ConfirmPersonName必填"),
    CONFIRMPERSONLISTLANGUAGEMISMATCH(1169, "ConfirmPersonList传入数据错误，ConfirmPerson：%s,开授权人卡时，ConfirmPersonAuthEmailLanguage不匹配"),
    CONFIRM_PERSON_LIST_ERROR(1170, "ConfirmPersonList传入数据错误，ConfirmPerson：%s,开授权人卡时，NeedOpenVirtualCard必须为true"),
    CONFIRM_PERSON_LIST_EMAIL_ERROR(1171, "ConfirmPersonList传入数据错误，ConfirmPerson：%s,开授权人卡时，相同ConfirmPerson记录下ConfirmPersonEmail必须一致"),
    CONFIRM_PERSON_LIST_EMPLOYEE_ID_ERROR(1172, "ConfirmPersonList传入数据错误，ConfirmPerson：%s,开授权人卡时，相同ConfirmPerson记录下ConfirmPersonEmployeeID必须一致"),
    CONFIRM_PERSON_LIST_NAME_ERROR(1173, "ConfirmPersonList传入数据错误，ConfirmPerson：%s,开授权人卡时，相同ConfirmPerson记录下ConfirmPersonName必须一致"),
    CONFIRM_PERSON_LIST_AUTH_EMAIL_LANGUAGE_ERROR(1174, "ConfirmPersonList传入数据错误，ConfirmPerson：%s,开授权人卡时，相同ConfirmPerson记录下ConfirmPersonAuthEmailLanguage必须一致"),
    CONFIRM_PERSON_LIST_FAILED(1175, "ConfirmPersonList传入数据错误，ConfirmPerson：%s,授权人开卡失败"),
    CONFIRM_PERSON_LIST_EMPLOYEE_ID_EXISTS(1176, "ConfirmPersonList传入数据错误，ConfirmPerson：%s,ConfirmPersonEmployeeID：%s,授权人员工编号已经开过卡"),
    CONFIRM_PERSON_LIST_LENGTH_ERROR(1177, "ConfirmPersonList传入数据错误，ConfirmPerson：%s,开授权人卡时，%s长度大于%s"),
    CONCUR_ACCOUNT_INVALID_EMAIL(1178, "ConcurAccount传入数据错误，非有效邮箱格式"),
    LENGTH_ERROR(1179, "%s长度大于%s"),
    INVALID(1180, "%s不合法"),
    THIRD_PARTY_ACCOUNT_REQUIRED(1181, "当第三方平台账号不为空时，第三方平台必填且值不能为0"),
    THIRD_PARTY_ACCOUNT_INVALID(1182, "第三方平台账号为空或者第三方平台不合法"),
    CARD_NOTIFICATION_LANGUAGE_INVALID(1183, "开卡通知邮件语言不合法"),
    PHONE_NUMBER_ALREADY_BOUND(1184, "该手机号已绑定携程商旅用户，且本企业启用了自动手机号码绑定功能，无法为您创建新的携程商旅用户"),
    GROUP_COMPANY_INFORMATION_NOT_FOUND(1185, "未找到该公司ID：%s,的集团公司信息"),
    SUBACCOUNT_INFORMATION_NOT_FOUND(1186, "未找到该SubAccountName的账户信息"),
    COMPANY_ID_CARD_KEY_EMPTY(1187, "该公司ID：%s,开卡主键为空"),
    COMPANY_ID_MULTIPLE_CARD_KEYS(1188, "该公司ID：%s,存在多个开卡主键"),
    CARD_KEY_EMPLOYEE_ID_NOT_EXISTS(1189, "开卡主键EmployeeID不存在"),
    CARD_KEY_EMAIL_NOT_EXISTS(1190, "开卡主键email不存在"),
    EMPLOYEE_KEY_ALREADY_EXISTS(1191, "员工主键已存在"),
    POS_STATION_NOT_FOUND(1192, "该公司ID：%s,pos站不存在"),
    CARD_NUMBER_DUPLICATE(1193, "一张卡号同一证件类型不允许重复添加"),
    CARD_KEY_OUT_OF_RANGE(1194, "该公司ID：%s,开卡主键不在规定范围内"),
    FOREIGN_COMPANY_DATA_SYNCING(1195, "%s无权同步海外公司人事数据！"),
    DOMESTIC_COMPANY_DATA_SYNCING(1196, "%s无权同步国内公司人事数据！"),
    FOREIGN_STATION(1197, "海外站，%s不能为空"),
    REQUESTFLAG_REQUIRED(1199, "RequestFlag必填"),
    MAXIMUM_LIMIT(2000, "不能超过100条"),
    CREATE_SUPERIOR_CARD_FAILURE_INVALID_EMAIL(2001, "创建上级虚卡失败，superiorEmail传入数据错误，非有效邮箱格式"),
    CREATE_SUPERIOR_CARD_FAILURE_INVALID_MOBILE(2002, "创建上级虚卡失败，superiorMobile传入数据错误，非有效手机号格式"),
    CREATE_SUPERIOR_CARD_FAILURE_INVALID_EMAIL_LANGUAGE(2003, "创建上级虚卡失败，superiorEmailLanguage传入数据无效"),
    CREATE_SUPERIOR_CARD_FAILURE_ALREADY_OPENED(2004, "创建上级虚卡失败，该员工编号%s已经开过卡"),
    CREATE_SUPERIOR_CARD_FAILURE(2005, "创建上级虚卡失败"),
    HR_UPDATE_INTERFACE_CALL_FAILURE(2006, "人事更新接口调用失败，公司%s未开启创建虚卡功能，禁止传入上级邮箱SuperiorEmail、上级手机SuperiorMobile、上级姓名SuperiorName、开卡邮件语言SuperiorEmailLanguage"),
    OPTIONAL_DATA_INVALID(2007, "卡号证件信息可选数据，证件姓LastName长度大于100"),
    OPTIONAL_DATA_INVALID2007(2008, "卡号证件信息可选数据，证件中间名MiddleName长度大于100"),
    OPTIONAL_DATA_INVALID2009(2009, "卡号证件信息可选数据，证件名FirstName长度大于100"),
    OPTIONAL_DATA_INVALID2010(2010, "卡号证件信息可选数据，证件签发地issueAt长度大于2"),
    OPTIONAL_DATA_INVALID2011(2011, "卡号证件信息可选数据，证件签发日期issueAt格式不合法"),
    OPTIONAL_DATA_INVALID2012(2012, "卡号证件信息可选数据，证件签发地issueAt不匹配"),
    INVALID_WORK_LOCATION_ID(2013, "工作所在城市ID不合法"),
    DUPLICATE_EMAIL_SEND_NODE_BUSINESS_TYPE_SEND_TYPE(2014, "邮件发送配置=>相同EmailSendNode和BusinessType和SendType仅允许同步一条数据"),
    SUPERIOR_EMAIL_NOT_EXIST(2015, "SuperiorEmail上级邮箱不存在");


    private int code;
    private String message;

    ErrorCode(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
